package com.lagou.edu.factory;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fanbo@imoran.net
 * @date 2020/12/26 10:20
 */
public class BeanFactory {

    /**
     * 存储对象
     */
    public static Map<String,Object> map = new HashMap<>();


    /**
     * 获取Bean
     * @param name
     * @return
     */
    public static Object getBean(String name){
        return map.get(name);
    }
}
